﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edage" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>批次随件卡打印</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
    <style type="text/css">
        /* .tableTransfer
        {
            filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
            height:690px;
            margin-top:10px;
        }*/
        .headTitle
        {
            font-size: 25px;
            font-weight: bold;
            letter-spacing: 2px;
        }
        .rightHeadTitle
        {
            font-size: 15px;
            font-weight: bold;
            float: right;
            margin-top: 13px;
            margin-right: 5px;
        }
        .productWorkingTable
        {
            width: 80%;
            border-bottom: 1px solid blue;
            border-right: 1px solid blue;
            border-left: 1px solid blue;
            border-top: 1px solid blue;
            border-collapse: collapse;
            padding: 0px;
        }
        .productWorkingTable td
        {
            border-bottom: 1px solid blue;
            border-right: 1px solid blue;
            border-left: 1px solid blue;
            border-top: 1px solid blue;
            border-collapse: collapse;
            padding: 5px;
            height: 60px;
            font-size: 20px;
            font-weight:bold;
            text-align: center;
        }
        .paging /*分页*/
        {
            height: 1px;
            page-break-after: always;
            margin: 0px;
        }
        .barCode
        {
            font-family: C39HrP48DmTt;
            font-size: 60px;
            text-align: right;
            right: 3px;
            top: 3px;
        }
        .takeLine /*占用线*/
        {
            width: 100%;
            height: 0px;
            border-top: 1px solid black;
        }
        .checkB
        {
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <div style="font-family: 微软雅黑;">
        <center>
            <div id="divMain" style="width: 700px">
            </div>
        </center>
    </div>
</body>
</html>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/json2.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script type="text/javascript">
    var page = {
        formID: 0, //来源ID（1：转工工序，2：采购订单）
        formData: null, //来源数据
        url: getRootPath() + "/Ashx/ReBiaoConainer/RBProductWorkingPrintHandler.ashx", //后台处理逻辑url
        init: function () {
            page.formID = getParam("formID");
            page.formData = decodeURIComponent(getParam("formData"));
            page.bind();
        },
        bind: function () {
            $.ajax({
                type: "Post",
                url: page.url,
                data: { action: "GetFollowPrint", formID: page.formID, formData: page.formData },
                cashe: false,
                beforeSend: function () {
                    $.messager.progress({ text: '', msg: '处理中...' });
                },
                success: function (data) {
                    $.messager.progress('close');
                    var result = JSON.parse(data);
                    if (result.Result) {
                        $("#divMain").html(result.ReturnData);
                        if (result.ReturnData == "") {
                            alert("暂无数据");
                        }
                    } else {
                        alert(result.Message);
                    }
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    $.messager.progress('close');
                    displayMessage(XMLHttpRequest.responseText, false);
                }
            });
        }
    }
    page.init();
</script>
